package com.sample.wanandroidx.ui.test
//
//import android.view.View
//import com.sample.library.util.ToastUtil
//import com.sample.wanandroidx.basic.BaseActivity
//import com.sample.wanandroidx.databinding.ActivityLibraryBusinessBinding
//import com.umeng.commonsdk.statistics.common.DeviceConfig.getDeviceIdForGeneral
//import com.umeng.socialize.ShareAction
//import com.umeng.socialize.UMShareAPI
//import com.umeng.socialize.UMShareListener
//import com.umeng.socialize.bean.SHARE_MEDIA
//import com.umeng.socialize.shareboard.ShareBoardConfig
//
//class LibraryBusinessActivity : BaseActivity<ActivityLibraryBusinessBinding>(ActivityLibraryBusinessBinding::inflate),
//                                UMShareListener {
//
//    override fun initialization() {
//        setTitleStr(intent.getStringExtra("title"))
//    }
//
//    fun pay(view: View) {
//        //        AliPayTools.aliPay()
//        //        WechatPayTools.doWXPay()
//        ToastUtil.show(getDeviceIdForGeneral(this))
//    }
//
//    fun share(view: View) {
//        val config = ShareBoardConfig() //新建ShareBoardConfig
//        config.setShareboardPostion(ShareBoardConfig.SHAREBOARD_POSITION_BOTTOM) //设置位置
//        config.setMenuItemBackgroundShape(ShareBoardConfig.BG_SHAPE_CIRCULAR)
//        config.setCancelButtonVisibility(true)
//
//        ShareAction(this).withText("hello").setDisplayList(SHARE_MEDIA.SINA, SHARE_MEDIA.QQ, SHARE_MEDIA.WEIXIN, SHARE_MEDIA.MORE)
//            .setCallback(this).open(config)
//    }
//
//    override fun onStart(shareMedia: SHARE_MEDIA?) {
//
//    }
//
//    override fun onResult(shareMedia: SHARE_MEDIA?) {
//
//    }
//
//    override fun onError(shareMedia: SHARE_MEDIA?, t: Throwable?) {
//
//    }
//
//    override fun onCancel(shareMedia: SHARE_MEDIA?) {
//
//    }
//
//    override fun onDestroy() {
//        super.onDestroy()
//        UMShareAPI.get(this).release();
//    }
//}